﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Excel;
using System.Drawing;

namespace AAA.Writer.Format
{
    public class ExcelFormat
    {
        private string _strWorksheetName;

        public string WorksheetName
        {
            get { return _strWorksheetName == null ? "Sheet1" : _strWorksheetName; }
            set { _strWorksheetName = value; }
        }

        private bool _isVisible;

        public bool IsVisible
        {
            get { return _isVisible; }
            set { _isVisible = value; }
        }

        private XlCalculation _eCalculation = XlCalculation.xlCalculationAutomatic;

        public XlCalculation Calculation
        {
            get { return _eCalculation; }
            set { _eCalculation = value; }
        }

        private string _strIdentifyColumn;

        public string IdentifyColumn
        {
            get { return _strIdentifyColumn; }
            set { _strIdentifyColumn = value; }
        }

        private int _iStartRow = 1;

        public int StartRow
        {
            get { return _iStartRow; }
            set { _iStartRow = value; }
        }

        private int _iStartCol = 1;

        public int StartCol
        {
            get { return _iStartCol; }
            set { _iStartCol = value; }
        }

        private bool _hasColumnName;

        public bool HasColumnName
        {
            get { return _hasColumnName; }
            set { _hasColumnName = value; }
        }

        private string[] _strColumnNames;

        public string[] ColumnNames
        {
            get { return _strColumnNames; }
            set { _strColumnNames = value; }
        }

        private bool _isAutoFitColumnWidth;

        public bool AutoFitColumnWidth
        {
            get { return _isAutoFitColumnWidth; }
            set { _isAutoFitColumnWidth = value; }
        }        
    }
}
